/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.edu.seu.cose.hobbysharing.bean;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author hp-2
 */

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "hobby")

public class Hobby {
    @XmlElement(name="id")
    private long hobbyId ;
    @XmlElement(name="name")
    private String hobbyName ;

    public long getHobbyId() {
        return hobbyId;
    }

    public String getHobbyName() {
        return hobbyName;
    }

    public void setHobbyId(long hobbyId) {
        this.hobbyId = hobbyId;
    }

    public void setHobbyName(String hobbyName) {
        this.hobbyName = hobbyName;
    }
    
}
